public class Main{
	public static void fac(int k)
	{
		int n=0,i=k;
		int a[]=new int[10];
		n=0;
		while(i/10!=0)
		{
			a[n]=i%10;
			i=i/10;
			n++;
		}
		a[n]=i;
		while(n>0)
		{
			if(a[n]<a[n-1])
			{
				System.out.println("false"); 
				return;
			}
			else
			n--;
		}
		System.out.println("true");	
	}
	public static void main(String[] args ) {			
		fac(5441);
		fac(363);			
	}		 
}